lmdb_oo

Undocumented in source.

Members

Aliases

mode
alias mode = mdb_mode_t
Undocumented in source.

Classes

BadDbiError
class BadDbiError

Exception class for MDB_BAD_DBI errors. @since 0.9.14 (2014/09/20) @see http://symas.com/mdb/doc/group__errors.html#gab4c82e050391b60a18a5df08d22a7083

CorruptedError
class CorruptedError

Exception class for MDB_CORRUPTED errors. @see http://symas.com/mdb/doc/group__errors.html#gaf8148bf1b85f58e264e57194bafb03ef

FatalError
class FatalError

Base class for fatal error conditions.

KeyExistError
class KeyExistError

Exception class for MDB_KEYEXIST errors. @see http://symas.com/mdb/doc/group__errors.html#ga05dc5bbcc7da81a7345bd8676e8e0e3b

LogicError
class LogicError

Base class for logic error conditions.

MapFullError
class MapFullError

Exception class for MDB_MAP_FULL errors. @see http://symas.com/mdb/doc/group__errors.html#ga0a83370402a060c9175100d4bbfb9f25

MbdError
class MbdError

Base class for LMDB exceptions

MdbCursor
class MdbCursor

Resource class for MDB_cursor* handles.

MdbDbi
class MdbDbi

Resource class for MDB_dbi handles.

MdbEnv
class MdbEnv

Resource class for MDB_env* handles.

MdbTxn
class MdbTxn

Resource class for MDB_txn* handles.

MdbVal
class MdbVal

Wrapper class for MDB_val structures.

NotFoundError
class NotFoundError

Exception class for MDB_NOTFOUND errors. @see http://symas.com/mdb/doc/group__errors.html#gabeb52e4c4be21b329e31c4add1b71926

PanicError
class PanicError

Exception class for MDB_PANIC errors. @see http://symas.com/mdb/doc/group__errors.html#gae37b9aedcb3767faba3de8c1cf6d3473

RuntimeError
class RuntimeError

Base class for runtime error conditions.

VersionMismatchError
class VersionMismatchError

Exception class for MDB_VERSION_MISMATCH errors. @see http://symas.com/mdb/doc/group__errors.html#ga909b2db047fa90fb0d37a78f86a6f99b

Static functions

cursor_close
void cursor_close(MDB_cursor* cursor)

Wrapper for cursor_close @see http://symas.com/mdb/doc/group__mdb.html#gad685f5d73c052715c7bd859cc4c05188

cursor_count
void cursor_count(MDB_cursor* cursor, size_t count)

Wrapper for cursor_count @throws lmdb_oo.MbdError on failure @see http://symas.com/mdb/doc/group__mdb.html#ga4041fd1e1862c6b7d5f10590b86ffbe2

cursor_dbi
MDB_dbi cursor_dbi(MDB_cursor* cursor)

Wrapper for cursor_dbi @see http://symas.com/mdb/doc/group__mdb.html#ga2f7092cf70ee816fb3d2c3267a732372

cursor_del
void cursor_del(MDB_cursor* cursor, uint flags)

Wrapper for cursor_del @throws lmdb_oo.MbdError on failure @see http://symas.com/mdb/doc/group__mdb.html#ga26a52d3efcfd72e5bf6bd6960bf75f95

cursor_get
bool cursor_get(MDB_cursor* cursor, MDB_val* key, MDB_val* data, MDB_cursor_op op)

Wrapper for cursor_get @throws lmdb_oo.MbdError on failure @see http://symas.com/mdb/doc/group__mdb.html#ga48df35fb102536b32dfbb801a47b4cb0

cursor_open
void cursor_open(MDB_txn* txn, MDB_dbi dbi, MDB_cursor** cursor)

Wrapper for cursor_open @throws lmdb_oo.MbdError on failure

cursor_put
void cursor_put(MDB_cursor* cursor, MDB_val* key, MDB_val* data, uint flags)

Wrapper for cursor_put @throws lmdb_oo.MbdError on failure @see http://symas.com/mdb/doc/group__mdb.html#ga1f83ccb40011837ff37cc32be01ad91e

cursor_renew
void cursor_renew(MDB_txn* txn, MDB_cursor* cursor)

Wrapper for cursor_renew @throws lmdb_oo.MbdError on failure @see http://symas.com/mdb/doc/group__mdb.html#gac8b57befb68793070c85ea813df481af

cursor_txn
MDB_txn* cursor_txn(MDB_cursor* cursor)

Wrapper for cursor_txn @see http://symas.com/mdb/doc/group__mdb.html#ga7bf0d458f7f36b5232fcb368ebda79e0

dbi_close
void dbi_close(MDB_env* env, MDB_dbi dbi)

Wrapper for mdb_close @see http://symas.com/mdb/doc/group__mdb.html#ga52dd98d0c542378370cd6b712ff961b5

dbi_del
bool dbi_del(MDB_txn* txn, MDB_dbi dbi, MDB_val* key, MDB_val* data)

Wrapper for mdb_del @retval true if the key/value pair was removed @retval false if the key wasn't found @see http://symas.com/mdb/doc/group__mdb.html#gab8182f9360ea69ac0afd4a4eaab1ddb0

dbi_drop
void dbi_drop(MDB_txn* txn, MDB_dbi dbi, bool del)

Wrapper for mdb_drop @see http://symas.com/mdb/doc/group__mdb.html#gab966fab3840fc54a6571dfb32b00f2db

dbi_flags
void dbi_flags(MDB_txn* txn, MDB_dbi dbi, uint* flags)

Wrapper for mdb_flags @throws lmdb_oo.MbdError on failure @see http://symas.com/mdb/doc/group__mdb.html#ga95ba4cb721035478a8705e57b91ae4d4

dbi_get
bool dbi_get(MDB_txn* txn, MDB_dbi dbi, MDB_val* key, MDB_val* data)

Wrapper for mdb_get @retval true if the key/value pair was retrieved @retval false if the key wasn't found @see http://symas.com/mdb/doc/group__mdb.html#ga8bf10cd91d3f3a83a34d04ce6b07992d

dbi_open
void dbi_open(MDB_txn* txn, char* name, uint flags, MDB_dbi* dbi)

Wrapper for mdb_dbi_open @throws lmdb_oo.MbdError on failure @see http://symas.com/mdb/doc/group__mdb.html#gac08cad5b096925642ca359a6d6f0562a

dbi_put
bool dbi_put(MDB_txn* txn, MDB_dbi dbi, MDB_val* key, MDB_val* data, uint flags)

Wrapper for mdb_put @retval true if the key/value pair was inserted @retval false if the key already existed @see http://symas.com/mdb/doc/group__mdb.html#ga4fa8573d9236d54687c61827ebf8cac0

dbi_set_compare
void dbi_set_compare(MDB_txn* txn, MDB_dbi dbi, MDB_cmp_func* cmp)

Wrapper for mdb_set_compare @throws lmdb_oo.MbdError on failure @see http://symas.com/mdb/doc/group__mdb.html#ga68e47ffcf72eceec553c72b1784ee0fe

dbi_set_dupsort
void dbi_set_dupsort(MDB_txn* txn, MDB_dbi dbi, MDB_cmp_func* cmp)

Wrapper for mdb_set_dupsort @throws lmdb_oo.MbdError on failure @see http://symas.com/mdb/doc/group__mdb.html#gacef4ec3dab0bbd9bc978b73c19c879ae

dbi_set_relctx
void dbi_set_relctx(MDB_txn* txn, MDB_dbi dbi, void* ctx)

Wrapper for mdb_dbi_set_relctx @throws lmdb_oo.MbdError on failure @see http://symas.com/mdb/doc/group__mdb.html#ga7c34246308cee01724a1839a8f5cc594

dbi_set_relfunc
void dbi_set_relfunc(MDB_txn* txn, MDB_dbi dbi, MDB_rel_func* rel)

Wrapper for mdb_set_relfunc @throws lmdb_oo.MbdError on failure @see http://symas.com/mdb/doc/group__mdb.html#ga697d82c7afe79f142207ad5adcdebfeb

dbi_stat
void dbi_stat(MDB_txn* txn, MDB_dbi dbi, MDB_stat* result)

Wrapper for mdb_stat @throws lmdb_oo.MbdError on failure @see http://symas.com/mdb/doc/group__mdb.html#gae6c1069febe94299769dbdd032fadef6

env_close
void env_close(MDB_env* env)

Wrapper for mdb_env_close @see http://symas.com/mdb/doc/group__mdb.html#ga4366c43ada8874588b6a62fbda2d1e95

env_copy
void env_copy(MDB_env* env, char* path, uint flags)

Wrapper for mdb_env_copy @throws lmdb_oo.MbdError on failure @see http://symas.com/mdb/doc/group__mdb.html#ga3bf50d7793b36aaddf6b481a44e24244 @see http://symas.com/mdb/doc/group__mdb.html#ga5d51d6130325f7353db0955dbedbc378

env_copy_fd
void env_copy_fd(MDB_env* env, mdb_filehandle_t fd, uint flags)

Wrapper for mdb_env_copy_fd @throws lmdb_oo.MbdError on failure @see http://symas.com/mdb/doc/group__mdb.html#ga5040d0de1f14000fa01fc0b522ff1f86 @see http://symas.com/mdb/doc/group__mdb.html#ga470b0bcc64ac417de5de5930f20b1a28

env_create
void env_create(MDB_env** env)

Wrapper for mdb_env_create @throws lmdb_oo.error on failure @see http://symas.com/mdb/doc/group__mdb.html#gaad6be3d8dcd4ea01f8df436f41d158d4

env_get_fd
void env_get_fd(MDB_env* env, mdb_filehandle_t* fd)

Wrapper for mdb_env_get_fd @throws lmdb_oo.MbdError on failure @see http://symas.com/mdb/doc/group__mdb.html#gaf1570e7c0e5a5d860fef1032cec7d5f2

env_get_flags
void env_get_flags(MDB_env* env, uint* flags)

Wrapper for mdb_env_get_flags @throws lmdb_oo.MbdError on failure @see http://symas.com/mdb/doc/group__mdb.html#ga2733aefc6f50beb49dd0c6eb19b067d9

env_get_max_keysize
uint env_get_max_keysize(MDB_env* env)

Wrapper for mdb_env_get_max_keysize @see http://symas.com/mdb/doc/group__mdb.html#gaaf0be004f33828bf2fb09d77eb3cef94

env_get_max_readers
void env_get_max_readers(MDB_env* env, uint* count)

Wrapper for mdb_env_get_max_readers @throws lmdb_oo.MbdError on failure @see http://symas.com/mdb/doc/group__mdb.html#ga70e143cf11760d869f754c9c9956e6cc

env_get_path
void env_get_path(MDB_env* env, char** path)

Wrapper for mdb_env_get_path @throws lmdb_oo.MbdError on failure @see http://symas.com/mdb/doc/group__mdb.html#gac699fdd8c4f8013577cb933fb6a757fe

env_get_userctx
void* env_get_userctx(MDB_env* env)

Wrapper for mdb_env_get_userctx @since 0.9.11 (2014/01/15) @see http://symas.com/mdb/doc/group__mdb.html#ga45df6a4fb150cda2316b5ae224ba52f1

env_info
void env_info(MDB_env* env, MDB_envinfo* stat)

Wrapper for env_info @throws lmdb_oo.MbdError on failure @see http://symas.com/mdb/doc/group__mdb.html#ga18769362c7e7d6cf91889a028a5c5947

env_open
void env_open(MDB_env* env, char* path, uint flags, mode mode)

Wrapper for mdb_env_open @throws lmdb_oo.MbdError on failure @see http://symas.com/mdb/doc/group__mdb.html#ga32a193c6bf4d7d5c5d579e71f22e9340

env_set_flags
void env_set_flags(MDB_env* env, uint flags, bool onoff)

Wrapper for mdb_env_set_flags @throws lmdb_oo.MbdError on failure @see http://symas.com/mdb/doc/group__mdb.html#ga83f66cf02bfd42119451e9468dc58445

env_set_mapsize
void env_set_mapsize(MDB_env* env, size_t size)

Wrapper for mdb_env_set_mapsize @throws lmdb_oo.MbdError on failure @see http://symas.com/mdb/doc/group__mdb.html#gaa2506ec8dab3d969b0e609cd82e619e5

env_set_max_dbs
void env_set_max_dbs(MDB_env* env, MDB_dbi count)

Wrapper for mdb_env_set_max_dbs @throws lmdb_oo.MbdError on failure @see http://symas.com/mdb/doc/group__mdb.html#gaa2fc2f1f37cb1115e733b62cab2fcdbc

env_set_max_readers
void env_set_max_readers(MDB_env* env, uint count)

Wrapper for mdb_env_set_max_readers @throws lmdb_oo.MbdError on failure @see http://symas.com/mdb/doc/group__mdb.html#gae687966c24b790630be2a41573fe40e2

env_set_userctx
void env_set_userctx(MDB_env* env, void* ctx)

Wrapper for mdb_env_set_userctx @throws lmdb_oo.MbdError on failure @since 0.9.11 (2014/01/15) @see http://symas.com/mdb/doc/group__mdb.html#gaf2fe09eb9c96eeb915a76bf713eecc46

env_stat
void env_stat(MDB_env* env, MDB_stat* stat)

Wrapper for mdb_env_stat @throws lmdb_oo.MbdError on failure @see http://symas.com/mdb/doc/group__mdb.html#gaf881dca452050efbd434cd16e4bae255

env_sync
void env_sync(MDB_env* env, bool force)

Wrapper for mdb_env_sync @throws lmdb_oo.MbdError on failure @see http://symas.com/mdb/doc/group__mdb.html#ga85e61f05aa68b520cc6c3b981dba5037

txn_abort
void txn_abort(MDB_txn* txn)

Wrapper for mdb_txn_abort @see http://symas.com/mdb/doc/group__mdb.html#ga73a5938ae4c3239ee11efa07eb22b882

txn_begin
void txn_begin(MDB_env* env, MDB_txn* parent, uint flags, MDB_txn** txn)

Wrapper for mdb_txn_begin @throws lmdb_oo.MbdError on failure @see http://symas.com/mdb/doc/group__mdb.html#gad7ea55da06b77513609efebd44b26920

txn_commit
void txn_commit(MDB_txn* txn)

Wrapper for mdb_txn_commit @throws lmdb_oo.MbdError on failure @see http://symas.com/mdb/doc/group__mdb.html#ga846fbd6f46105617ac9f4d76476f6597

txn_env
MDB_env* txn_env(MDB_txn* txn)

Wrapper for mdb_txn_env @see http://symas.com/mdb/doc/group__mdb.html#gaeb17735b8aaa2938a78a45cab85c06a0

txn_id
size_t txn_id(MDB_txn* txn)

Wrapper for mdb_txn_id @note Only available in HEAD, not yet in any 0.9.x release (as of 0.9.16).

txn_renew
void txn_renew(MDB_txn* txn)

Wrapper for mdb_txn_renew @throws lmdb_oo.MbdError on failure @see http://symas.com/mdb/doc/group__mdb.html#ga6c6f917959517ede1c504cf7c720ce6d

txn_reset
void txn_reset(MDB_txn* txn)

Wrapper for mdb_txn_reset @see http://symas.com/mdb/doc/group__mdb.html#ga02b06706f8a66249769503c4e88c56cd

Meta